# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=reprotest
_pyname=reprotest
pkgver=0.7.20
pkgrel=1
pkgdesc="Build packages and check them for reproducibility"
url="https://salsa.debian.org/reproducible-builds/reprotest"
arch="noarch !armv7 !x86 !armhf" # diffoscope
license="GPL-3.0-or-later"
depends="python3 diffoscope py3-rstr py3-distro"
makedepends="py3-setuptools py3-wheel"
checkdepends="dpkg py3-tox"
_pypiprefix="${_pyname%"${_pyname#?}"}"
source="https://salsa.debian.org/reproducible-builds/reprotest/-/archive/$pkgver/reprotest-$pkgver.tar.gz"
options="!check" # missing disorderfs

build() {
	python3 setup.py build
}

check() {
	tox -e py310 --sitepackages
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
8585f30ff9d712f7969efb40cf351ec574a9addf694ee50ecef3cf6fab8608985eba4a6a581b9bf08d0a9ace0d8ac77428b404f6788e22e4db3de9d9360a3493  reprotest-0.7.20.tar.gz
"
